﻿@model IEnumerable<SuperLottery.Datas.DbModels.LotteryDraw>

@{
	Layout = "~/Views/Shared/_DrawLayout.cshtml";
	ViewBag.Title = "所有公告";
}

<p>
	@Html.ActionLink("新增公告", "Create", new { IssuerGame = ViewContext.HttpContext.Request.QueryString["Issuer"] + "-" +  ViewContext.HttpContext.Request.QueryString["Game"]})
</p>
<table id="rounded-corner" style="width: 850px">
	<thead>
		<tr>
			<th scope="col" class="rounded">开奖日期</th>
			<th scope="col" class="rounded">彩票种类</th>
			<th scope="col" class="rounded">彩票期号</th>
			<th scope="col" class="rounded">基本号码</th>
			<th scope="col" class="rounded">特殊号码</th>
			<th scope="col" class="rounded"></th>
		</tr>
	</thead>
	@foreach (var item in Model)
 {
		<tr>
			<td>
				@item.DrawDate.ToString("yyyy-MM-dd")
			</td>
			<td>
				@item.Issuer-@item.Game
			</td>
			<td>
				@item.IssueNumber
			</td>
			<td>
				@item.Numbers
			</td>
			<td>
				@item.BonusNumbers
			</td>
			<td>
				@Html.ActionLink("修改", "Edit", new { id = item.Id }) |
                @Html.ActionLink("添加", "Create", new { IssuerGame = item.Issuer + "-" + item.Game})
			</td>
		</tr>
 }

</table>
